import {DataNode} from 'rc-tree/lib/interface'


export type PcapResult = {
  detailMsg: string;
  summaryMsg: string;
  hexMsg: string;
}

export type Summary = {
  no: string;
  timeStr: string;
  source: string;
  arrow: string;
  destination: string;
  protocol: string;
  length: string;
  info: string;
  period: number;
}

export interface DetailItem extends DataNode {
  field: DetailItem[] | undefined;
  section: Section;
  "@_name": string;
  "@_pos": number;
  "@_show": string;
  "@_showname": string;
  "@_value": number;
  "@_size": number;
}

export type HexStr = {
  char: string;
  isHighlight: boolean;
}
export type Section = {
  left: number;
  right: number;
}
export type SectionUUId = {
  key: string;
  section: Section;
}
